!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=1)}([function(e,t){e.exports=function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(t){return e[t]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(1),o=n(14);const c=new(n.n(o).a);class s{constructor(e={},t={}){this.options=Object(i.j)(e,t),this.on=c.on.bind(c),this.emit=c.emit.bind(c)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"k",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"l",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"m",(function(){return h})),n.d(t,"a",(function(){return f})),n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return b})),n.d(t,"f",(function(){return g})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return y})),n.d(t,"j",(function(){return k}));var i=n(10),o=n(3),c=n(11),s=n(12),r=n(13);const a=i.a,l=i.b,u=(e,t)=>e.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,(e,n)=>t(n)||""),d=(e,t)=>{let n=!1;return function(){n||(e(...arguments),n=!0,setTimeout((function(){n=!1}),t))}},p=e=>{let t,n=0,i=0,o=e.length;if(0===e.length)return n;for(;i(t,[n,i])=>(t[n]=i instanceof Object&&!(i instanceof Array)?e[n]instanceof Object&&!(e[n]instanceof Array)?Object.entries(i).reduce(w(e[n]),{}):i:e.hasOwnProperty(n)?e[n]:i,t),k=(e,t)=>Object.entries(e).reduce(w(t),{})},function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return r}));const i=["DENY","ALLOW","DISMISS","PREFERENCES"],o="DENY",c="ALLOW",s="DISMISS",r=["UNCATEGORIZED","ESSENTIAL","PERSONALIZATION","ANALYTICS","MARKETING"]},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s}));const i=e=>"#"==e[0]?e.substr(1):3==e.length?e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e,o=e=>(e=i(e),128<=(299*parseInt(e.substr(0,2),16)+587*parseInt(e.substr(2,2),16)+114*parseInt(e.substr(4,2),16))/1e3?"#000":"#fff"),c=e=>{const t=parseInt(i(e),16),n=38+(t>>16),o=38+(255&t>>8),c=38+(255&t);return"#"+(16777216+65536*(255>n?1>n?0:n:255)+256*(255>o?1>o?0:o:255)+(255>c?1>c?0:c:255)).toString(16).slice(1)},s=e=>"000000"===(e=i(e))?"#222":c(e)},function(e,t,n){"use strict";n.r(t);var i=n(5),o=(n.n(i),n(9));window.CookieConsent=o.a,t.default=o.a},function(e,t,n){var i=n(6),o=n(7);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{insert:"head",singleton:!1});var c=o.locals?o.locals:{};e.exports=c},function(e,t,n){"use strict";function i(e){for(var t=-1,n=0;n.cc-link{margin-bottom:1em}.cc-window.cc-floating .cc-compliance{flex:1 0 auto}.cc-window.cc-banner{align-items:center}.cc-banner.cc-top{left:0;right:0;top:0}.cc-banner.cc-bottom{left:0;right:0;bottom:0}.cc-banner .cc-message{flex:1 1 auto;max-width:100%;display:contents;text-align:center}.cc-compliance{display:flex;align-items:center;justify-content:space-between;padding-top:24px;justify-content:center}.cc-floating .cc-compliance>.cc-btn{flex:1}.cc-btn+.cc-btn{margin-left:0.5em}.cc-window.cc-type-categories{display:inline-flex;flex-direction:column;overflow:visible}.cc-window.cc-type-categories .form{text-align:right}.cc-window.cc-type-categories .cc-btn{margin:0}.cc-window.cc-type-categories .cc-btn.cc-save{margin:0;display:inline-block}.cc-categories{display:inline-flex}.cc-categories .cc-category{display:flex;max-width:100%;margin:0 2px;position:relative}.cc-categories .cc-btn{border-right:none;outline:none;text-transform:capitalize}.cc-categories .cc-btn input[type=checkbox]{float:left;height:26px;width:calc( 100% - 22px);display:block;position:absolute;top:0;left:2px;cursor:pointer}.cc-categories .cc-btn:not(.cc-info):not(.cc-save){padding-left:26px}.cc-categories .cc-info{border-left:none;border-right:2px solid lightgrey;padding:4px;font-variant:all-small-caps}.cc-categories .cc-info:focus+.cc-tooltip{display:block}.cc-categories .cc-tooltip{display:none;position:absolute;z-index:3;width:190px;bottom:46px;padding:8px;border:thin solid lightgrey;box-shadow:1px 1px 4px rgba(150,150,150,0.7)}.cc-categories .cc-tooltip:after{content:"";width:10px;height:10px;transform:rotate(45deg);position:absolute;bottom:-7px;left:10px;box-shadow:2px 1px 1px rgba(200,200,200,0.5)}.cc-categories .cc-tooltip p{margin:0}@media print{.cc-window,.cc-revoke{display:none}}@media screen and (min-width: 1024px){.cc-window.cc-center{max-width:32em;width:500px}}@media screen and (max-width: 576px){.cc-center .cc-compliance{margin:0}}@media screen and (max-width: 414px) and (orientation: portrait), screen and (max-width: 736px) and (orientation: landscape){.cc-window.cc-top{top:0}.cc-window.cc-bottom{bottom:0}.cc-window.cc-banner,.cc-window.cc-floating,.cc-window.cc-right,.cc-window.cc-left{left:0;right:0}.cc-window.cc-center{top:50%;transform:translate(0%, -50%);margin-right:35px;margin-left:35px}.cc-window.cc-banner{flex-direction:column;align-items:unset}.cc-window.cc-banner .cc-compliance{flex:1 1 auto}.cc-window.cc-banner .cc-message{margin-right:0;margin-bottom:1em}.cc-window.cc-floating{max-width:none}.cc-window.cc-type-categories{flex-direction:column}.cc-window .cc-message{margin-bottom:1em}.cc-window .cc-categories{flex-direction:column;width:100%;margin-right:8px}.cc-window .cc-category{margin:4px 0}.cc-window .cc-category .cc-btn:not(.cc-info){width:calc( 100% - 16px);min-width:140px}}@media screen and (max-width: 854px){.cc-window.cc-type-categories .cc-btn.cc-save{margin:8px 0}}@media screen and (max-width: 790px){.cc-window.cc-type-categories .cc-categories{display:flex;flex-direction:column}.cc-categories .cc-category{margin:4px 0}.cc-btn:not(.cc-info):not(.cc-save){width:calc( 100% - 16px)}}.cc-floating.cc-theme-classic{border-radius:5px}.cc-floating.cc-type-info.cc-theme-classic .cc-compliance{text-align:center;display:inline;flex:none}.cc-theme-classic{overflow:visible;justify-content:space-between}.cc-theme-classic .cc-btn{position:relative;border-radius:5px;outline:none}.cc-theme-classic .cc-btn:last-child{min-width:140px}.cc-theme-classic .cc-category .cc-btn{border-radius:5px 0 0 5px;padding-right:2px;padding-left:28px;font-weight:normal;border-right:none;box-sizing:border-box}.cc-theme-classic .cc-category .cc-btn input[type=checkbox]{position:absolute;left:0;top:-1px;width:100%;height:26px;opacity:0;cursor:pointer;z-index:1}.cc-theme-classic .cc-category .cc-btn input[type=checkbox]+.cc-btn-checkbox{display:block;font-size:2rem;position:absolute;top:2px;left:6px;z-index:0;outline:none}.cc-theme-classic .cc-category .cc-btn input[type=checkbox]+.cc-btn-checkbox:before{content:"\\1F5F5"}.cc-theme-classic .cc-category .cc-btn input[type=checkbox]:checked+.cc-btn-checkbox:after{content:"\\2713";position:absolute;top:-4px;left:0;font-size:2.3rem;text-shadow:0 1px 3px rgba(150,150,150,0.5)}.cc-theme-classic .cc-category .cc-btn.cc-info{margin:0;padding:0 4px;border-radius:0 5px 5px 0}.cc-theme-classic .cc-category .cc-btn:last-child{min-width:0}.cc-theme-classic .cc-category .cc-tooltip{border-radius:5px}.cc-theme-classic .cc-category .cc-tooltip:after{border-bottom:thin solid lightgrey;border-right:thin solid lightgrey}.cc-floating.cc-type-info.cc-theme-classic .cc-btn{display:inline-block}.cc-theme-edgeless.cc-window{padding:0}.cc-floating.cc-theme-edgeless .cc-message{margin:2em;margin-bottom:1.5em}.cc-banner.cc-theme-edgeless .cc-btn{margin:0;padding:0.8em 1.8em;height:100%}.cc-banner.cc-theme-edgeless .cc-message{margin-left:1em}.cc-floating.cc-theme-edgeless .cc-btn+.cc-btn{margin-left:0}.cc-window.cc-theme-edgeless.cc-type-categories .cc-categories .cc-btn{padding:0.4em 0.8em;padding-left:26px}.cc-window.cc-theme-edgeless.cc-type-categories .cc-categories .cc-btn.cc-info{padding:0.4em 4px}.cc-window.cc-theme-edgeless.cc-type-categories .cc-categories .cc-tooltip{border:none}\n',""]),e.exports=t},function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=function(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}(i),c=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(c).concat([o]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var c,s=0;s{const t=this.options.cookie&&this.options.cookie.name?this.options.cookie.name:"cookieconsent_status_",n=Object(a.b)(t+e);return Object(a.h)(n)?{[e]:n}:void 0}).filter(e=>!!e&&e[Object.keys(e)[0]]);0this.emit("initialized",t)):this.options.legal&&this.options.legal.countryCode?this.initializationComplete({code:this.options.legal.countryCode}):this.options.location?new c.a(this.options.location).locate(this.initializationComplete.bind(this),this.initializationError.bind(this)):this.initializationComplete({})}initializationComplete(e){e.code&&(this.options=new o.a(this.options.legal).applyLaw(this.options,e.code)),this.popup=new s.a(this.options),setTimeout(()=>this.emit("initialized",this.popup),0)}initializationError(e){setTimeout(()=>this.emit("error",e,new s.a(this.options)),0)}getCountryLaws(e){return new o.a(this.options.legal).get(e)}isOpen(){return this.popup.isOpen()}close(){return this.popup.close(),this}revokeChoice(){return this.popup.revokeChoice(),this}open(){return this.popup.open(),this}toggleRevokeButton(e){return this.popup.toggleRevokeButton(e),this}setStatuses(e){return this.popup.setStatuses(e),this}clearStatuses(){return this.popup.clearStatuses(),this}destroy(){return this.popup.destroy(),this}preferencesChoiceClick(){return this.popup.preferencesChoiceClick(),this}}r.e.reduce((e,t)=>(Object.defineProperty(l,t,{get:function(){return t},set:function(){},enumerable:!1,writeable:!1,configurable:!1}),e),l)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));const i=e=>{const t=(" "+document.cookie).split(" "+e+"=");return 2>t.length?void 0:t.pop().split(";").shift()},o=function(e,t,n,i,o,c,s){const r=new Date;r.setHours(r.getHours()+24*("number"==typeof n?n:365)),document.cookie=e+"="+t+";expires="+r.toUTCString()+";path="+(o||"/")+(i?";domain="+i:"")+(c?";secure":"")+(s?";SameSite=Lax":"")}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}));var i=n(3);const o=(e,t)=>e&&e.parentNode?e.classList.contains(t)?e:o(e.parentNode,t):null,c=(e,t,n)=>{const o={},{popup:c,button:s,highlight:r,saveButton:a}=t;c&&(c.text=c.text?c.text:Object(i.a)(c.background),c.link=c.link?c.link:c.text,o[n+" .cc-tooltip, "+n+" .cc-tooltip:after"]=["color: "+c.text,"background-color: "+c.background],o[n+".cc-window"]=["color: "+c.text,"background-color: "+c.background],o[n+".cc-revoke"]=["color: "+c.text,"background-color: "+c.background],o[n+" .cc-link,"+n+" .cc-link:active,"+n+" .cc-link:visited"]=["color: "+c.link],s&&(s.text=s.text?s.text:Object(i.a)(s.background),s.border=s.border?s.border:"transparent",o[n+" .cc-btn"]=["color: "+s.text,"border-color: "+s.border,"background-color: "+s.background],s.padding&&o[n+" .cc-btn"].push("padding: "+s.padding),"transparent"!=s.background&&(o[n+" .cc-btn:hover, "+n+" .cc-btn:focus"]=["background-color: "+(s.hover||Object(i.b)(s.background))]),r?(r.text=r.text?r.text:Object(i.a)(r.background),r.border=r.border?r.border:"transparent",o[n+" .cc-highlight .cc-btn:first-child"]=["color: "+r.text,"border-color: "+r.border,"background-color: "+r.background]):o[n+" .cc-highlight .cc-btn:first-child"]=["color: "+c.text,"border-color: transparent"]),a&&(o[`${n} .cc-btn.cc-save`]=["color: "+a.text,"border-color: "+a.border,"background-color: "+a.background]));const l=document.createElement("style");return l.id=e,document.head.appendChild(l),Object.entries(o).forEach(([e,t],n)=>l.sheet.insertRule(`${e}{${t.join(";")}}`,n)),l}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));var i=n(2);const o=e=>0<=i.e.indexOf(e),c=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),s=e=>"object"==typeof e&&null!==e&&e.constructor==Object},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));const i=(e,t,n)=>{let i;const o=document.createElement("script");o.type="text/"+(e.type||"javascript"),o.src=e.src||e,o.async=!1,o.onreadystatechange=s.onload=function(){const e=o.readyState;clearTimeout(i),t.done||e&&!/loaded|complete/.test(e)||(t.done=!0,t(),o.onreadystatechange=o.onload=null)},document.body.appendChild(o),i=setTimeout((function(){t.done=!0,t(),o.onreadystatechange=o.onload=null}),n)},o=(e,t,n,i,o)=>{const c=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(c.open(i?"POST":"GET",e,1),c.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(o))for(let e=0,t=o.length;es&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,console}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function s(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=c.bind(i);return o.listener=n,i.wrapFn=o,o}function r(e,t,n){var i=e._events;if(void 0===i)return[];var o=i[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=Array(e.length),n=0;ne||h(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");f=e}}),t.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(e){if("number"!=typeof e||0>e||h(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},t.prototype.getMaxListeners=function(){return i(this)},t.prototype.emit=function(e){for(var t=[],n=1;nc)return this;0===c?i.shift():function(e,t){for(;t+1{let i=n?n.responseText:"";e.__JSONP_DATA&&(i=e.__JSONP_DATA,delete e.__JSONP_DATA),this.runServiceCallback.call(this,t,e,i)},this.options.timeout,e.data,e.headers)}runServiceCallback(e,t,n){const i=t.callback(t=>{i||this.onServiceResult(e,t)},n);i&&this.onServiceResult(e,i)}onServiceResult(e,t){t instanceof Error||t&&t.error?e.call(this,t,null):e.call(this,null,t)}runNextServiceOnError(e,t){if(e){this.logError(e);const t=this.getNextService();t?this.runService(t,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,t)}getCurrentServiceOpts(){const e=this.options.services[this.currentServiceIndex];return"string"==typeof e?{name:e}:"function"==typeof e?e():Object(c.g)(e)?e:{}}completeService(e,t){this.currentServiceIndex=-1,e&&e(t)}logError(){}}},function(e,t){"use strict";const n=e=>new Error("Error ["+(e.code||"UNKNOWN")+"]: "+e.error);t.a={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(e,t){try{const e=JSON.parse(t);return e.error?n(e):{code:e.country}}catch(e){return n({error:"Invalid response ("+e+")"})}}}},ipinfodb:function(){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(e,t){try{const e=JSON.parse(t);return"ERROR"==e.statusCode?n({error:e.statusMessage}):{code:e.countryCode}}catch(e){return n({error:"Invalid response ("+e+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(e){return window.geoip2?void geoip2.country((function(t){try{e({code:t.country.iso_code})}catch(t){e(n(t))}}),(function(t){e(n(t))})):void e(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(0),o=n(20),c=n(2),s=n(1);class r extends i.a{constructor(e){super(o.a,e),this.userCategories={UNCATEGORIZED:"DISMISS",ESSENTIAL:"ALLOW",PERSONALIZATION:"DISMISS",ANALYTICS:"DISMISS",MARKETING:"DISMISS"},this.customStyles={},this.hasTransition=!!function(){const e=document.createElement("div"),t={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(let n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n+"ransition"])return t[n];return""}(),this.canUseCookies()&&(this.options.enabled=!1),this.options.blacklistPage.includes(location.pathname)&&(this.options.enabled=!1),this.options.whitelistPage.includes(location.pathname)&&(this.options.enabled=!0);let t=this.options.window.replace("{{classes}}",this.getPopupClasses().join(" ")).replace("{{children}}",this.getPopupInnerMarkup());const n=this.options.overrideHTML;if("string"==typeof n&&n.length&&(t=n),this.options.static){const e=this.appendMarkup(`
${t}
`);e.style.display="",this.element=e.firstChild,this.element.style.display="none",this.element.classList.add("cc-invisible")}else this.element=this.appendMarkup(t);this.applyAutoDismiss(),this.applyRevokeButton(),Object(s.f)()&&(this.element.style.padding="1.2em"),this.applyShadow(),this.options.autoOpen&&this.autoOpen()}open(){if(this.element)return this.isOpen()||(this.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.emit("popupOpened")),this}close(e){if(this.element)return this.isOpen()&&(this.hasTransition&&this.fadeOut(),e&&this.options.revokable&&this.toggleRevokeButton(!0),this.emit("popupClosed")),this.element.style.display="none",this}fadeIn(){const e=this.element;this.hasTransition&&e&&(this.afterTransition&&this.afterFadeOut(e),e.classList.contains("cc-invisible"))&&(e.style.display="",this.options.static&&(this.element.parentNode.style.maxHeight=this.element.clientHeight+"px"),this.openingTimeout=setTimeout(()=>this.afterFadeIn(e),20))}afterFadeIn(e){this.openingTimeout=null,e.classList.remove("cc-invisible")}fadeOut(){this.hasTransition&&this.element&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),this.afterFadeIn(this.element)),!this.element.classList.contains("cc-invisible")&&(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=()=>this.afterFadeOut(this.element),this.element.addEventListener(this.transitionEnd,this.afterTransition),this.element.classList.add("cc-invisible")))}afterFadeOut(e){e.style.display="none",e.removeEventListener(this.transitionEnd,this.afterTransition),this.afterTransition=null}isOpen(){return this.element&&""===this.element.style.display&&(!this.hasTransition||!this.element.classList.contains("cc-invisible"))}toggleRevokeButton(e){this.revokeBtn&&(this.revokeBtn.style.display=e?"":"none")}revokeChoice(e){this.options.enabled=!0,this.clearStatuses(),this.emit("revokeChoice"),e||this.autoOpen()}preferencesChoiceClick(){this.emit("preferencesChoiceClick")}hasAnswered(){return this.getStatuses().some(e=>!!e)}hasConsented(){return this.getStatuses().map(e=>e===c.b||e===c.d)}autoOpen(){const e=this.hasAnswered();!e&&this.options.enabled?this.open():e&&this.options.revokable&&this.toggleRevokeButton(!0)}setStatuses(){const{name:e,expiryDays:t,domain:n,path:i,secure:o,sameSite:r}=this.options.cookie,a=(a,l)=>{if(Object(s.h)(l)){const u=e+"_"+a,d=0<=c.e.indexOf(Object(s.b)(u));Object(s.k)(u,l,t,n,i,o,r),this.emit("statusChanged",u,l,d)}else this.clearStatuses()};0===arguments.length?c.a.forEach(e=>a(e,this.userCategories[e])):1===arguments.length?c.a.forEach(e=>a(e,arguments[0])):1{a(this.userCategories[t],e)})}getStatuses(){return c.a.map(e=>Object(s.b)(this.options.cookie.name+"_"+e))}clearStatuses(){const{name:e,domain:t,path:n}=this.options.cookie;c.a.forEach(i=>{Object(s.k)(e+"_"+i,"",-1,t,n)})}canUseCookies(){if(!window.navigator.cookieEnabled||window.CookiesOK||window.navigator.CookiesOK)return!0;const e=this.getStatuses(),t=0({[c.a[t]]:Object(s.h)(e)})).filter(e=>e[Object.keys(e)[0]]).length;return e.forEach((e,t)=>this.userCategories[c.a[t]]===e?e:this.userCategories[c.a[t]]),t}getPositionClasses(){return this.options.position.split("-").map(e=>"cc-"+e)}getPopupClasses(){const e=this.options;let t="top"==e.position||"bottom"==e.position?"banner":"floating";Object(s.f)()&&e.mobileForceFloat&&(t="floating");const n=["cc-"+t,"cc-type-"+e.type,"cc-theme-"+e.theme];return e.static&&n.push("cc-static"),"center"===e.position&&n.push("cc-center"),n.push.apply(n,this.getPositionClasses()),this.attachCustomPalette(this.options.palette),this.customStyleSelector&&n.push(this.customStyleSelector),n}getPopupInnerMarkup(){const e={},t=this.options;t.showLink||(t.elements.link="",t.elements.messagelink=t.elements.message),Object.keys(t.elements).forEach(n=>{e[n]=Object(s.e)(t.elements[n],e=>{const n=t.content[e];return e&&"string"==typeof n&&n.length?n:""})});let n=t.compliance[t.type];n||(n=t.compliance.info),e.compliance=Object(s.e)(n,t=>e[t]);let i=t.layouts[t.layout];return i||(i=t.layouts.basic),Object(s.e)(i,t=>e[t])}appendMarkup(e){const t=this.options,n=document.createElement("div"),i=t.container&&1===t.container.nodeType?t.container:document.body;n.innerHTML=e;const o=n.children[0];if(o.style.display="none",o.classList.contains("cc-window")&&this.hasTransition&&o.classList.add("cc-invisible"),o.addEventListener("click",e=>this.handleButtonClick(e)),o.querySelectorAll('.cc-btn [type="checkbox"]').forEach(e=>{e.addEventListener("change",()=>{this.userCategories[e.name]=e.checked?"ALLOW":"DENY"}),e.addEventListener("click",e=>e.stopPropagation())}),o.querySelectorAll(".cc-info").forEach(e=>{e.addEventListener("mousedown",(function(e){this===document.activeElement&&(this.blur(),e.preventDefault())}))}),t.autoAttach)try{i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o)}catch(e){throw new Error("No container to attach too. Make sure the DOM has loaded. Is your script loaded just before the `` tag?")}return o}handleButtonClick(e){const t=Object(s.m)(e.target,"cc-btn")||e.target;if(t.classList.contains("cc-btn")&&t.classList.contains("cc-save"))return this.setStatuses(),void this.close(!0);if(t.classList.contains("cc-PREFERENCES"))this.preferencesChoiceClick();else{if(!t.classList.contains("cc-btn"))return t.classList.contains("cc-close")?(this.setStatuses(c.d),void this.close(!0)):t.classList.contains("cc-revoke")?void this.revokeChoice():void 0;{const e=t.className.match(new RegExp("\\bcc-("+c.e.map(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")).join("|")+")\\b")),n=e&&e[1]||!1;n&&(this.setStatuses(n),this.close(!0))}}}attachCustomPalette(e){const t=Object(s.d)(JSON.stringify(e)),n="cc-color-override-"+t,i=Object(s.g)(e);return this.customStyleSelector=i?n:null,i&&Object(s.a)(t,e,"."+n),i}getEventPath(e){return(e.composedPath?e.composedPath():function(e,t){for(;t;)e.push(t),t=t.parentNode;return e}([],e.target))||void 0}applyAutoDismiss(){var e=Math.floor;const{enabled:t,dismissOnTimeout:n,dismissOnScroll:i,dismissOnLinkClick:o,dismissOnWindowClick:s,dismissOnKeyPress:r}=this.options;t&&("number"==typeof n&&0<=n?this.dismissTimeout=setTimeout(()=>{this.setStatuses(c.d),this.close(!0)},e(n)):"number"==typeof i&&0<=i?(this.onWindowScroll=()=>{window.pageYOffset>e(i)&&(this.setStatuses(c.d),this.close(!0),window.removeEventListener("scroll",this.onWindowScroll,{passive:!0}),this.onWindowScroll=null)},window.addEventListener("scroll",this.onWindowScroll,{passive:!0})):s?(this.onWindowClick=e=>{getEventPath(e).some(e=>this.options.ignoreClicksFrom.some(t=>e.classList&&e.classList.contains(t)))||(this.setStatuses(c.d),this.close(!0),window.removeEventListener("click",this.onWindowClick),window.removeEventListener("touchend",this.onWindowClick),this.onWindowClick=null)},window.addEventListener("click",this.onWindowClick),window.addEventListener("touchend",this.onWindowClick)):o?(this.onLinkClick=e=>{getEventPath(e).some(e=>void 0!==e.tagName&&"A"===e.tagName)&&(this.setStatuses(c.d),this.close(!0),window.removeEventListener("click",this.onLinkClick),this.onLinkClick=null)},window.addEventListener("click",this.onLinkClick)):r&&(this.onKeyPress=e=>{const{keyCode:t}=e;13===t?(this.setStatuses(c.b),this.close(!0)):27===t&&(this.setStatuses(c.d),this.close(!0))},window.addEventListener("onkeypress",this.onKeyPress)))}applyShadow(){this.options.palette&&this.options.palette.shadow&&(this.element.style.border=this.options.palette.shadow.border,this.element.style.boxShadow=this.options.palette.shadow.boxShadow)}applyRevokeButton(){if("info"!=this.options.type&&1==this.options.regionalLaw&&(this.options.revokable=!0),Object(s.f)()&&(this.options.animateRevokable=!1),this.options.revokable){const e=this.getPositionClasses();this.options.animateRevokable&&e.push("cc-animate"),this.customStyleSelector&&e.push(this.customStyleSelector),this.options.theme&&e.push("cc-theme-"+this.options.theme);const t=this.options.revokeBtn.replace("{{classes}}",e.join(" ")).replace("{{policy}}",this.options.content.policy);this.revokeBtn=this.appendMarkup(t);const n=this.revokeBtn;if(this.options.animateRevokable){const e=Object(s.l)((function(e){let t=!1;const i=window.innerHeight-20;(n.classList.contains("cc-top")&&e.clientY<20||n.classList.contains("cc-bottom")&&e.clientY>i)&&(t=!0),t&&!n.classList.contains("cc-active")?n.classList.add("cc-active"):!t&&n.classList.contains("cc-active")&&n.classList.remove("cc-active")}),200);this.onMouseMove=e,window.addEventListener("mousemove",e)}}}destroy(){this.element&&this.element.remove(),this.revokeBtn&&this.revokeBtn.remove(),this.onWindowScroll&&window.removeEventListener("scroll",this.onWindowScroll),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),window.removeEventListener("touchend",this.onWindowClick)),this.onLinkClick&&window.removeEventListener("click",this.onLinkClick),this.onKeyPress&&window.addEventListener("onkeypress",this.onKeyPress)}}},function(e,t,n){"use strict";var i=n(2);t.a={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"localhost",expiryDays:365,secure:!1,sameSite:null},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",preferences:"Preferences",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://www.cookiesandyou.com",close:"❌",target:"_blank",policy:"Cookie Policy"},elements:{header:'{{header}} ',message:'{{message}}',messagelink:'{{message}} {{link}}',dismiss:`{{dismiss}}`,allow:`{{allow}}`,preferences:'{{preferences}}',deny:`{{deny}}`,link:'{{link}}',close:'{{close}}',categories:'
    '+i.a.map((e,t)=>`
  • This is the category for cookies that don't fit the '${e.toLowerCase()}' category.

  • `).join("")+"
",save:''},window:'',modal:"",revokeBtn:'
{{policy}}
',compliance:{info:'
{{dismiss}}
',"opt-in":'
{{deny}}{{allow}}{{customize}}
',"opt-out":'
{{dismiss}}{{deny}}
',categories:'
{{categories}}{{save}}
'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,dismissOnLinkClick:!1,dismissOnKeyPress:!1,ignoreClicksFrom:["cc-revoke","cc-btn","cc-link"],autoOpen:!0,autoAttach:!0,mobileForceFloat:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null}}])},function(e,t,n){"use strict";n.r(t);var i=function(e){return document.dispatchEvent(new Event(e))},o=n(0),c=n.n(o),s=function(e){var t=e.configuration,n=e.allowAnalytics,i=e.allowFunctional,o=e.setPrivacyDataBrowser,s=new c.a(t);return s.on("initialized",(function(e){"info"===t.type&&(n(),i()),Array.isArray(e)&&(Object.keys(e).forEach((function(t){var o=e[t],c=Object.keys(o)[0];"ANALYTICS"===c&&"ALLOW"===o[c]&&n(),"PERSONALIZATION"===c&&"ALLOW"===o[c]&&i()})),o())})),s.on("statusChanged",(function(e,t){"ALLOW"===t&&("cookieconsent_status_ANALYTICS"===e&&n(),"cookieconsent_status_PERSONALIZATION"===e&&i()),o()})),s};function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t0&&document.querySelectorAll('[data-editable="true"]').length>0},p=function(e){var t=e.configuration;return d(t)&&("info"===t.type||"opt-in"===t.type)},h=function(e){if(!p(e))return i(e.analytics.eventName),i(e.functional.eventName),!1;var t=e.configuration,n=e.analytics,o=e.functional;return u(t,n,o)};window.Scout=h;t.default=h}]);